package com.shujia.java.day2;

import java.util.Scanner;

public class Demo15For {
    public static void main(String[] args) {


        /**
         * 打印加法表
         *
         */
        Scanner sc = new Scanner(System.in);

        int val = sc.nextInt();

        //一个循环两个变量
        for (int i = 0, j = val; i <= val; i++, j--) {
            System.out.println(i + " + " + j + " = " + val);
        }

        System.out.println("=====================");

        for (int i = 0; i <= val; i++) {
            System.out.println(i + "+" + (val - i) + "=" + val);
        }


    }
}
